package com.cn.thread;

/**
 * @author hels
 * @version 1.0
 * @date 2022/3/7 17:00
 */
public class T1Thread extends Thread{
    public static void main(String[] args) {
        T1Thread myO = new T1Thread("铁肩");
        T1Thread myT = new T1Thread("担道义");
        myO.start();
        myT.start();
    }

    public T1Thread(String name) {
        super(name);
    }
    @Override
    public void run() {
        super.run();
        for (int i = 0; i < 10; i++) {
            System.out.println(getName() + "==" + i);
        }
    }
}
